package com.plpm.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文件分片信息模型
 * 
 * @author PLPM Team
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChunkInfo {
    
    private String fileId;
    private String fileName;
    private int chunkIndex;
    private int totalChunks;
    private long chunkSize;
    private String chunkPath;
    private String status; // UPLOADING, COMPLETED, FAILED

    public ChunkInfo(String fileId, String fileName, int chunkIndex, int totalChunks, long chunkSize) {
        this.fileId = fileId;
        this.fileName = fileName;
        this.chunkIndex = chunkIndex;
        this.totalChunks = totalChunks;
        this.chunkSize = chunkSize;
        this.status = "UPLOADING";
    }
}
